<template>
  <div class="home-page">
    <!-- 轮播图区域 -->
    <div class="banner-wrapper">
      <el-carousel height="400px" :interval="5000" arrow="never" indicator-position="outside">
        <el-carousel-item v-for="(banner, index) in banners" :key="index">
          <div class="banner-item" :style="{ background: banner.gradient }">
            <div class="banner-content">
              <div class="banner-text">
                <h2 class="banner-title">{{ banner.title }}</h2>
                <h3 class="banner-subtitle">{{ banner.subtitle }}</h3>
                <p class="banner-desc">{{ banner.description }}</p>
              </div>
              <div class="banner-image" :style="{ backgroundImage: banner.image }"></div>
            </div>
          </div>
        </el-carousel-item>
      </el-carousel>
    </div>

    <!-- 三个专区入口 -->
    <div class="feature-sections">
      <div>
        <div class="feature-section" v-for="(feature, index) in features" :key="index">
          <div class="feature-content">
            <div class="feature-title">{{ feature.title }}</div>
            <div class="feature-desc">{{ feature.desc }}</div>
          </div>
          <div class="feature-arrow">
            <i class="el-icon-arrow-right"></i>
          </div>
        </div>
      </div>
    </div>

    <!-- 排行榜和最新资讯区域 -->
    <div class="rank-news-container">
      <div class="rank-news-wrapper">
        <!-- 左侧：怪谭巅峰榜 -->
        <div class="rank-section">
          <div class="section-header">
            <h2 class="section-title">
              <span class="title-icon">🌾</span>
              怪谭巅峰榜
              <span class="title-icon">🌾</span>
            </h2>
          </div>
          <div class="rank-desc">根据作品好评、人气、互动等综合得分排行</div>
          <div class="rank-list">
            <div v-for="(book, index) in rankBooks" :key="index" class="rank-item">
              <div class="rank-number">{{ book.rank }}</div>
              <div class="rank-book-cover" :style="{ background: book.coverGradient }"></div>
              <div class="rank-book-info">
                <div class="rank-book-title">{{ book.title }}</div>
                <div class="rank-book-author">{{ book.author }}</div>
                <div class="rank-book-category">{{ book.category }}</div>
              </div>
            </div>
          </div>
          <div class="rank-controls">
            <span class="rank-control active"></span>
            <span class="rank-control"></span>
            <span class="rank-control"></span>
            <span class="rank-control"></span>
          </div>
        </div>

        <!-- 右侧：最新资讯 -->
        <div class="news-section">
          <div class="section-header">
            <h2 class="section-title">
              <span class="title-icon">📰</span>
              最新资讯
            </h2>
            <a href="#" class="more-link">更多 <i class="el-icon-arrow-right"></i></a>
          </div>
          <div class="news-list">
            <div v-for="(news, index) in latestNews" :key="index" class="news-item">
              <span class="news-title">{{ news.title }}</span>
              <i class="el-icon-arrow-right news-arrow"></i>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 男频女频分区 -->
    <div class="gender-sections">
      <div>
        <div class="gender-tabs">
          <div class="tab-header">
            <div class="tab active">男频精选</div>
            <div class="tab">女频精选</div>
          </div>
          <div class="tab-content">
            <div class="book-list">
              <div v-for="(book, index) in maleBooks" :key="index" class="book-item">
                <div class="book-cover" :style="{ background: book.coverGradient }"></div>
                <div class="book-info">
                  <div class="book-title">{{ book.title }}</div>
                  <div class="book-author">{{ book.author }}</div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="rank-links">
          <a href="#" class="rank-link">男频排行榜</a>
          <a href="#" class="rank-link">女频排行榜</a>
        </div>
      </div>
    </div>

    <!-- 热门版权 -->
    <div class="copyright-section">
      <div>
        <div class="section-header">
          <h2 class="section-title">热门版权改编</h2>
        </div>
        <div class="copyright-content">
          <p>动漫、影视尽在番茄小说</p>
          <p>来番茄小说，追精品IP原著小说</p>
          <div class="action-links">
            <a href="#" class="action-link">查看全部</a>
          </div>
        </div>
      </div>
    </div>

    <!-- 最新更新 -->
    <div class="latest-update">
      <div>
        <div class="section-header">
          <h2 class="section-title">最近更新</h2>
          <a href="#" class="more-link">查看全部</a>
        </div>
        <div class="update-table">
          <div class="update-table-header">
            <span class="col-type">类型</span>
            <span class="col-title">书名</span>
            <span class="col-chapter">最新章节</span>
            <span class="col-author">作者</span>
            <span class="col-time">更新时间</span>
          </div>
          <div v-for="(book, index) in latestUpdates" :key="index" class="update-table-row">
            <span class="col-type">{{ book.type }}</span>
            <span class="col-title">{{ book.title }}</span>
            <span class="col-chapter">{{ book.latestChapter }}</span>
            <span class="col-author">{{ book.author }}</span>
            <span class="col-time">{{ book.updateTime }}</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomePage',
  data() {
    return {
      banners: [
        {
          title: '奇思妙想',
          subtitle: '脑洞盛宴征文活动',
          description: '十大分类，三重奖励',
          gradient: 'linear-gradient(90deg, #e8f4ff 0%, #d1e9ff 100%)',
          image: 'url("/images/banner-creative.png")'
        },
        {
          title: '热血征程',
          subtitle: '玄幻大陆行',
          description: '年度玄幻征文大赛',
          gradient: 'linear-gradient(90deg, #fff0e0 0%, #ffe0c0 100%)',
          image: 'url("/images/banner-fantasy.png")'
        },
        {
          title: '都市传奇',
          subtitle: '现代都市新篇章',
          description: '都市文学创作大赛',
          gradient: 'linear-gradient(90deg, #e0f0e0 0%, #c0e0c0 100%)',
          image: 'url("/images/banner-urban.png")'
        }
      ],
      features: [
        {
          title: '作家福利',
          desc: '番茄作家福利社区'
        },
        {
          title: '作家专区',
          desc: '创建作品、查看作品数据及收益'
        },
        {
          title: '版权专区',
          desc: '优秀版权作品展示'
        }
      ],
      rankBooks: [
        {
          rank: 10,
          title: '癫，都癫，癫点好啊',
          author: '星光璀璨',
          category: '都市日常',
          coverGradient: 'linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)'
        },
        {
          rank: 13,
          title: '我做老千的那些年',
          author: '都市日常',
          category: '都市日常',
          coverGradient: 'linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)'
        },
        {
          rank: 16,
          title: '北派盗墓笔记',
          author: '晨曦灵异',
          category: '灵异悬疑',
          coverGradient: 'linear-gradient(135deg, #f093fb 0%, #f5576c 100%)'
        },
        {
          rank: 17,
          title: '天不应',
          author: '奇幻仙侠',
          category: '奇幻仙侠',
          coverGradient: 'linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%)'
        },
        {
          rank: 12,
          title: '诸神黑戏',
          author: '都市高武',
          category: '都市高武',
          coverGradient: 'linear-gradient(135deg, #ffedbc 0%, #ed4264 100%)'
        }
      ],
      latestNews: [
        { title: '2025年2月番茄平台账号违规处罚公告' },
        { title: '2025年1月平台福利活动拟获奖作品公示' },
        { title: '笔墨贺新岁，新年写新书｜萌新创作邀请赛' },
        { title: '新年第一讲！杀虫队队员直播讲述《十日终焉》创作历程' },
        { title: '2025年1月番茄平台账号违规处罚公告' },
        { title: '签到日历功能上线通知' }
      ],
      maleBooks: [
        {
          title: '部族荣光',
          author: '丧狐',
          coverGradient: 'linear-gradient(135deg, #ffedbc 0%, #ed4264 100%)'
        },
        {
          title: '莫若凌霄',
          author: '月关',
          coverGradient: 'linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)'
        },
        {
          title: '高手下山，我有九个无敌师父！',
          author: '小殇殇',
          coverGradient: 'linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%)'
        },
        {
          title: '玄幻，我顿悟了混沌体',
          author: '叶大刀',
          coverGradient: 'linear-gradient(135deg, #f093fb 0%, #f5576c 100%)'
        },
        {
          title: '武碎星河',
          author: '妖夜',
          coverGradient: 'linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)'
        }
      ],
      femaleBooks: [
        {
          title: '觉醒！白莲花人设不能崩【穿书】',
          author: '忍冬藤',
          coverGradient: 'linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%)'
        },
        {
          title: '娇养玫瑰',
          author: '美绿',
          coverGradient: 'linear-gradient(135deg, #f093fb 0%, #f5576c 100%)'
        },
        {
          title: '天灾，我囤几十亿物资在末世求生',
          author: '袅袅鱼音',
          coverGradient: 'linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)'
        },
        {
          title: '心肝宠',
          author: '九棂',
          coverGradient: 'linear-gradient(135deg, #c1dfc4 0%, #deecdd 100%)'
        },
        {
          title: '皇后重生要谋反',
          author: '流心蜜糖',
          coverGradient: 'linear-gradient(135deg, #f6d365 0%, #fda085 100%)'
        }
      ],
      latestUpdates: [
        {
          type: '动漫衍生',
          title: '谁敢说我是训练家之耻',
          latestChapter: '第443章 总决赛·拳扼怒熊！',
          author: '虹贯',
          updateTime: '03-05 18:01'
        },
        {
          type: '玄幻言情',
          title: '师尊，小师妹又去划地盘收小弟了',
          latestChapter: '第194章 他肯定是坏人，他想杀我',
          author: '半颗橙籽',
          updateTime: '03-05 18:01'
        },
        {
          type: '传统玄幻',
          title: '从风云入仙途：从获得龙元开始',
          latestChapter: '第23章 剖析林羽实力，战局微妙制衡',
          author: '冰逆草青',
          updateTime: '03-05 18:01'
        },
        {
          type: '科幻末世',
          title: '星河彼岸的诺言',
          latestChapter: '第61章 失望',
          author: '茶间烟火',
          updateTime: '03-05 18:01'
        },
        {
          type: '现言脑洞',
          title: '自从疯癫打砸抢，幸福不是一点点',
          latestChapter: '第128章 巴山楚水凄凉地，他们越想越生气。',
          author: '做人不必太正常',
          updateTime: '03-05 18:01'
        },
        {
          type: '都市脑洞',
          title: '嫌弃我送外卖，分手了你哭什么？',
          latestChapter: '第635章 恩人，你没事吧？',
          author: '吃鲨鱼的kt猫',
          updateTime: '03-05 18:01'
        },
        {
          type: '医术',
          title: '替嫁嫡女带空间，薄情王爷宠爆了',
          latestChapter: '第201章 发现若云意的下落',
          author: '陈小妖',
          updateTime: '03-05 18:01'
        }
      ]
    }
  }
}
</script>

<style scoped>
.home-page {
  padding: 0;
  margin: 0;
  background-color: #fff;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative;
  left: 0;
  right: 0;
}

/* 轮播图样式 */
.banner-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  margin-bottom: 0;
}

.banner-item {
  height: 100%;
  width: 100%;
  background-size: cover !important;
  background-position: center !important;
  display: flex;
  justify-content: center;
}

.banner-content {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  max-width: 1400px;
}

.banner-text {
  flex: 1;
  max-width: 500px;
  z-index: 1;
  padding-left: 20px;
  padding-right: 20px;
}

.banner-title {
  font-size: 42px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.2;
}

.banner-subtitle {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.banner-desc {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

.banner-image {
  width: 50%;
  height: 300px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  padding-right: 20px;
}

/* 通用样式 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  position: relative;
  padding-left: 10px;
  border-left: 4px solid #ff6e00;
}

.title-icon {
  margin: 0 5px;
  font-size: 18px;
}

.more-link {
  color: #999;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.more-link:hover {
  color: #ff6e00;
}

.more-link i {
  margin-left: 5px;
  font-size: 12px;
}

/* 三个专区入口样式 */
.feature-sections {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  margin-top: 0;
  padding-top: 20px;
}

.feature-sections > div {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
}

.feature-section {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0 30px;
  border-right: 1px solid #f0f0f0;
}

.feature-section:last-child {
  border-right: none;
}

.feature-section:hover .feature-title {
  color: #ff6e00;
}

.feature-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: #999;
}

.feature-arrow {
  color: #ccc;
}

/* 排行榜和最新资讯区域 */
.rank-news-container {
  width: 100%;
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.rank-news-wrapper {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* 左侧：怪谭巅峰榜 */
.rank-section {
  flex: 2;
  padding: 20px;
  margin-right: 20px;
  border-right: 1px solid #f0f0f0;
}

.rank-section .section-title {
  display: flex;
  align-items: center;
  border-left: none;
  padding-left: 0;
}

.rank-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  padding-left: 5px;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.rank-item {
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.rank-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.rank-number {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 24px;
  height: 24px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background-color: #ff6e00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-book-cover {
  width: 100%;
  height: 140px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rank-book-info {
  width: 100%;
}

.rank-book-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.rank-book-author {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.rank-book-category {
  font-size: 12px;
  color: #999;
  background-color: #f5f5f5;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.rank-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.rank-control {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 5px;
  cursor: pointer;
}

.rank-control.active {
  background-color: #ff6e00;
  width: 20px;
  border-radius: 4px;
}

/* 右侧：最新资讯 */
.news-section {
  flex: 1;
  padding: 20px;
  border-left: none;
}

.news-section .section-title {
  display: flex;
  align-items: center;
  border-left: none;
  padding-left: 0;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-item:last-child {
  border-bottom: none;
}

.news-title {
  font-size: 14px;
  color: #333;
  flex: 1;
}

.news-item:hover .news-title {
  color: #ff6e00;
}

.news-arrow {
  margin-left: 5px;
  color: #999;
}

.news-item:hover .news-arrow {
  color: #ff6e00;
}

/* 男频女频分区 */
.gender-sections {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 20px 0;
}

.gender-sections > div {
  width: 1200px;
  margin: 0 auto;
}

.gender-tabs {
  margin-bottom: 20px;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.tab {
  padding: 0 20px 15px 0;
  margin-right: 20px;
  font-size: 18px;
  color: #999;
  cursor: pointer;
}

.tab.active {
  color: #333;
  font-weight: bold;
  position: relative;
}

.tab.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff6e00;
}

.book-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.book-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.book-cover {
  width: 100%;
  height: 160px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
}

.book-info {
  flex: 1;
}

.book-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.book-author {
  font-size: 12px;
  color: #999;
}

.rank-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.rank-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.rank-link:after {
  content: '>';
  margin-left: 5px;
  font-family: sans-serif;
}

.rank-link:hover {
  color: #ff6e00;
}

/* 热门版权 */
.copyright-section {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 20px 0;
}

.copyright-section > div {
  width: 1200px;
  margin: 0 auto;
}

.copyright-content {
  text-align: center;
  padding: 30px 0;
}

.copyright-content p {
  font-size: 16px;
  color: #666;
  margin: 10px 0;
}

.action-links {
  margin-top: 20px;
}

.action-link {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #ff6e00;
  color: #ff6e00;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

.action-link:hover {
  background-color: #ff6e00;
  color: #fff;
}

/* 最新更新 */
.latest-update {
  width: 100%;
  background: #fff;
  padding: 20px 0;
}

.latest-update > div {
  width: 1200px;
  margin: 0 auto;
}

.update-table {
  width: 100%;
}

.update-table-header {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  font-weight: bold;
  color: #666;
}

.update-table-row {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.update-table-row:hover {
  background-color: #fafafa;
}

.col-type {
  width: 100px;
  color: #ff6e00;
}

.col-title {
  flex: 2;
  color: #333;
  font-weight: bold;
}

.col-chapter {
  flex: 2;
  color: #666;
}

.col-author {
  width: 120px;
  color: #666;
}

.col-time {
  width: 100px;
  color: #999;
  text-align: right;
}

/* 全局样式 */
:deep(.el-carousel__container) {
  margin: 0;
  padding: 0;
}

:deep(.el-carousel__item) {
  padding: 0;
  margin: 0;
}

:deep(.el-carousel__indicators) {
  bottom: 20px;
  z-index: 10;
  display: flex;
  justify-content: center;
}

:deep(.el-carousel__indicator) {
  padding: 0 6px;
  margin: 0 2px;
}

:deep(.el-carousel__indicator .el-carousel__button) {
  width: 20px;
  height: 3px;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.6);
  opacity: 0.8;
  transition: all 0.3s ease;
}

:deep(.el-carousel__indicator.is-active .el-carousel__button) {
  background-color: #ff6e00;
  opacity: 1;
  width: 30px;
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
  .banner-content,
  .feature-sections > div,
  .rank-news-wrapper,
  .gender-sections > div,
  .copyright-section > div,
  .latest-update > div {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .book-list {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .banner-title {
    font-size: 36px;
  }
  
  .banner-subtitle {
    font-size: 30px;
  }
  
  :deep(.el-carousel__indicator .el-carousel__button) {
    width: 18px;
    height: 3px;
  }
  
  :deep(.el-carousel__indicator.is-active .el-carousel__button) {
    width: 28px;
  }
  
  .rank-news-wrapper {
    flex-direction: column;
  }
  
  .rank-section {
    margin-right: 0;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
  }
  
  .news-section {
    padding: 20px;
    border-left: none;
  }
  
  .rank-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .search-box input {
    width: 150px;
  }
  
  .book-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .update-table-header .col-chapter,
  .update-table-row .col-chapter {
    display: none;
  }
  
  .banner-title {
    font-size: 28px;
  }
  
  .banner-subtitle {
    font-size: 24px;
  }
  
  .banner-desc {
    font-size: 16px;
  }
  
  .banner-image {
    width: 40%;
  }
  
  :deep(.el-carousel__indicator .el-carousel__button) {
    width: 15px;
    height: 2px;
  }
  
  :deep(.el-carousel__indicator.is-active .el-carousel__button) {
    width: 25px;
  }
  
  .rank-book-cover {
    width: 60px;
    height: 90px;
    margin: 0 10px;
  }
  
  .rank-book-title {
    font-size: 14px;
  }
  
  .rank-book-author {
    font-size: 12px;
  }
  
  .rank-list {
    grid-template-columns: repeat(1, 1fr);
  }
}
</style>

<style>
/* 添加全局样式，确保整个页面包括两侧背景都是白色 */
html, body, #app {
  background-color: #fff !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* 确保所有Vue根容器也是白色 */
.el-container, .el-main {
  background-color: #fff !important;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  width: 100%;
}

/* 确保轮播图能够铺满整个屏幕宽度 */
.el-carousel {
  width: 100%;
  overflow: hidden;
}

/* 修复可能的水平滚动条问题 */
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* 重置el-main的样式 */
.el-main {
  padding: 0 !important;
  max-width: 100% !important;
}
</style> 